package com.jh.fcsm.dao.sys;

import com.jh.fcsm.beans.sys.SysUserRole;
import com.jh.fcsm.beans.sys.vo.SysUserInfoVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SysUserRoleMapper extends Mapper<SysUserRole> {

    /**
     * @param roleIds
     * @return List<SysUserRole>
     * 批量查询角色下所有的用户关系
     * @author szx
     */
    List<SysUserRole> selectUserByRoleIds(@Param("roleIds") String[] roleIds);

    List<SysUserInfoVO> findByRoleIdAndName(@Param("id") String id, @Param("userNames") String[] userNames);

}